Page({

  /**
   * 页面的初始数据
   */
  data: {
    number:null,
  },
  //动态改变input值
  bindReplaceNumber: function(e){
    var value = e.detail.value;
    value = value== ""?null:value;
    this.setData({
      number: value
    })
  },
  //查询
  queryExpress: function(){
    console.log(this.data.number)
    var that = this;
    wx.request({
      url: 'https://sp0.baidu.com/9_Q4sjW91Qh3otqbppnN2DJv/pae/channel/data/asyncqury', //仅为示例，并非真实的接口地址
      data: {
        'appid': '4001',
        'com': 'shentong',
        'nu': that.data.number
      },
      header: {
        'content-type': 'application/json', // 默认值
        'Cookie': 'globacsrftoken=saiXdCuK-0pKL63zxa0IAW9hwLht3CGPzw8XzkYkSFQ;BAIDUID=58E58018908655AB9BD547073B7AE983:FG=1;BIDUPSID=58E58018908655AB9BD547073B7AE983;PSTM=1571043643'
      },
      success(res) {
        console.log(res.data)
      }
    })
  }
})